package com.xq.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (BizOutStock)表实体类
 *
 * @author makejava
 * @since 2020-08-09 17:03:43
 */
@SuppressWarnings("serial")
@Data
@TableName("biz_out_stock")
public class BizOutStock implements Serializable {
    /**编号 */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**出库单 */
    @TableField("out_num")
    private String outNum;
    /**出库类型:0:直接出库,1:审核出库 */
    @TableField("type")
    private Integer type;
    /**操作人 */
    @TableField("operator")
    private String operator;
    /**出库时间 */
    @DateTimeFormat(pattern = "yyyy-mm-dd")
    @TableField("create_time")
    private Date createTime;
    /**出库总数 */
    @TableField("product_number")
    private Integer productNumber;
    /**消费者id */
    @TableField("consumer_id")
    private Long consumerId;
    /**备注 */
    @TableField("remark")
    private String remark;
    /**状态:0:正常入库,1:已进入回收,2:等待审核 */
    @TableField("status")
    private Integer status;
    /**紧急程度:1:不急,2:常规,3:紧急4:特急 */
    @TableField("priority")
    private Integer priority;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer deleted;
    /** ------------------非本表字段------------------ */
    /**发放地址 */
    @TableField(exist = false,value = "address")
    private String address;
    /**手机号 */
    @TableField(exist = false,value = "phone")
    private String phone;
    /**联系人 */
    @TableField(exist = false,value = "contact")
    private String contact;
}